export const tableComponentConfig = {
  removeButton: () =>
    import('@/common/views/baseComponent/tableComp/removeButton.vue'),
  secretLevel: () => import('@/common/components/secret-level-info/index.vue'),
};

export const tableRenderConfig = {
  1: {
    title: '供应商',
    dataIndex: 'supplierName',
    width: '120',
  },
  2: {
    title: '供应商编码',
    dataIndex: 'supplierCode',
    width: '120',
  },
  3: {
    title: '使用部门',
    dataIndex: 'userDeptCode',
    width: '120',
  },
  4: {
    title: '需求日期',
    dataIndex: 'requireDate',
    width: '120',
  },
  5: {
    title: '需求数量',
    dataIndex: 'requireQty',
    width: '120',
  },
  6: {
    title: '架次/台份',
    dataIndex: 'manufactureLotNo',
    width: '120',
  },
  7: {
    title: '批次',
    dataIndex: 'batchNo',
    width: '120',
  },
  8: {
    title: '计量单位',
    dataIndex: 'measureUnitName',
    width: '120',
  },
  9: {
    title: '成品名称',
    dataIndex: 'materialName',
    width: '120',
  },
  10: {
    title: '技术条件',
    dataIndex: 'technicalCondition',
    width: '120',
  },
  11: {
    title: '成品分工路线',
    dataIndex: 'divideRoute',
    width: '120',
  },
  12: {
    title: '成品父型号',
    dataIndex: 'productSuperTypeNo',
    width: '120',
  },
  13: {
    title: '成品型号',
    dataIndex: 'productTypeNo',
    width: '120',
  },
  14: {
    title: '规格',
    dataIndex: 'specification',
    width: '120',
  },
  15: {
    title: '物料名称',
    dataIndex: 'materialName',
    width: '120',
  },
  16: {
    title: '物料编码',
    dataIndex: 'materialCode',
    width: '120',
  },
  17: {
    title: '零件号',
    dataIndex: '17',
    width: '120',
  },
  18: {
    title: '密级',
    dataIndex: 'secretLevel',
    componentName: 'secretLevel',
    slotName: 'secretLevel',
    width: '120',
  },
  19: {
    title: '配套单号',
    dataIndex: 'requireNo',
    width: '120',
  },
  20: {
    title: '客户类型',
    dataIndex: 'customerType',
    width: '120',
  },
  21: {
    title: '机型',
    dataIndex: 'millTypeCode',
    width: '120',
  },
  22: {
    title: '牌号',
    dataIndex: 'substanceBrand',
    width: '120',
  },
  23: {
    title: '材料尺寸',
    dataIndex: 'substanceSize',
    width: '120',
  },
  24: {
    title: '品类名称',
    dataIndex: 'categoryLv1Name',
    slotName: 'categoryLv1Name',
    width: '120',
  },
  25: {
    title: '附加技术条件描述',
    dataIndex: 'extraTechnicalCondition',
    width: '120',
  },
  39: {
    title: '一级品类',
    dataIndex: 'categoryLv1Name',
    width: '120',
  },
  26: {
    title: '二级品类',
    dataIndex: 'categoryLv2Name',
    width: '120',
  },
  27: {
    title: '三级品类',
    dataIndex: 'categoryLv3Name',
    width: '120',
  },
  28: {
    title: '外包提出单位',
    dataIndex: 'outSourceDeptName',
    width: '120',
  },
  29: {
    title: '需求来源',
    // dataIndex: 'requireSourceTypeDesc',
    dataIndex: 'requireSourceTypeName',
    width: '120',
  },
  30: {
    title: '图号',
    dataIndex: 'picNo',
    width: '120',
  },
  31: {
    title: '需求确认人',
    dataIndex: 'confirmUserName',
    width: '120',
  },
  32: {
    title: '零组件图号',
    dataIndex: 'partPicNo',
    width: '120',
  },
  33: {
    title: '图号版本',
    dataIndex: 'picNoVersion',
    width: '120',
  },
  34: {
    title: '工艺状态号',
    dataIndex: 'processStateNo',
    width: '120',
  },
  35: {
    title: '分工线路',
    dataIndex: 'divisionOfLine',
    width: '120',
  },
  36: {
    title: '加工内容',
    dataIndex: 'machineContent',
    width: '120',
  },
  37: {
    title: '额外数量',
    dataIndex: 'extraQty',
    width: '120',
  },
  38: {
    title: '总需求数',
    dataIndex: 'requireAllQty',
    width: '120',
  },
  40: {
    title: '需求编码',
    dataIndex: 'requireNo',
    width: '120',
  },
  41: {
    title: '需求明细',
    dataIndex: '41',
    width: '120',
  },
  42: {
    title: '汇总人姓名',
    dataIndex: 'creator',
    width: '120',
  },
  43: {
    title: '汇总人部门',
    dataIndex: 'deptId',
    slotName: 'deptId',
    width: '120',
  },
  44: {
    title: '汇总时间',
    dataIndex: 'gatherDate',
    width: '120',
  },
  45: {
    title: '操作',
    slotName: 'optional',
    width: 180,
    fixed: 'right',
  },
};
